﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using System.Linq;
using System.Text;
using KduneeShaders;
using Microsoft.Xna.Framework;

namespace ShaderApp
{
    class MagicExample : ShaderExample
    {
        override internal void LoadContent(ContentManager content)
        {
            Model model = content.Load<Model>(@"Content\Models\p1_wedge");

            Texture2D diffuse = content.Load<Texture2D>(@"Content\Textures\wedge_p1_diff_v1");

            MagicShader newMagic = new MagicShader(content, diffuse);

            newMagic.Parameters["lightAmbient"].SetValue(new Vector4(0.5f, 0.5f, 0.5f, 1.0f));
            newMagic.MaterialAmbient = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);
            newMagic.MaterialDiffuse = new Vector4(3.0f, 3.0f, 3.0f, 1.0f);
            newMagic.MagicColor = new Vector4(0.7f, 0.57f, 0.21f, 0.6f);
            newMagic.MagicRate = 0.0008f;
            newMagic.MagicScale = 4;

            objects.Add(new ShaderedObject(newMagic, model));
        }
    }
}
